package com.tanhua.manage.enums;

/**
 * @Author xiaoxin
 * @Date 2020/12/13 10:54
 * @Description: 权限枚举类
 */
public enum PermissionEnum {
    /**
     * 权限类型：
     * 01为首页；
     * 02为用户管理；0201为查看；0202为冻结；0203为解冻
     * 03为动态管理；0301为查看；0302为删除
     * 04为审核管理；0401为头像审核；0402为图片审核；
     * 0403为文案审核；0404为视频审核；0405为敏感词管理
     * 05为系统管理；0501为运营日志；0502为权限管理
     */
    SHOUYE("01", "首页"),
    YONGYUGUANLI("02", "用户管理"),
    YONGYUGUANLI_CHECK("0201", "查看"),
    YONGYUGUANLI_FREEZE("0202", "冻结"),
    YONGYUGUANLI_UNFREEZE("0203", "解冻"),
    DONGTAIGUANLI("03", "动态管理"),
    DONGTAIGUANLI_CHECK("0301", "查看"),
    DONGTAIGUANLI_DELETE("0302", "删除"),
    SHENHEGUANLI("04", "审核管理"),
    SHENHEGUANLI_HEAD("0401", "头像审核"),
    SHENHEGUANLI_IMAGE("0402", "图片审核"),
    SHENHEGUANLI_TEXT("0403", "文案审核"),
    SHENHEGUANLI_VIDEO("0404", "视频审核"),
    SHENHEGUANLI_SENSITIVITY("0405", "敏感词管理"),
    XITONGGUANLI("05", "系统管理"),
    XITONGGUANLI_LOG("0501", "运营日志"),
    XITONGGUANLI_PERMISSION("0502", "权限管理"),
    ;

    private String value;
    private String name;

    PermissionEnum(String value, String name) {
        this.value = value;
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public String getName() {
        return name;
    }
}
